<fieldset>

    <legend>条件搜索</legend>

    <form action="{:request()->url()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单ID</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="order_id" placeholder="请输入订单ID" value="{$get.order_id|default=''}">
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">还款计划ID</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="plan_id" placeholder="请输入还款计划ID" value="{$get.plan_id|default=''}">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">{:lang('店铺名称')}</label>
            <label class="layui-input-inline">
                <input class="layui-input" name="shop_name" placeholder="请输入店铺名称" value="{$get.shop_name|default=''}">
            </label>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">{:lang('账单类型')}</label>
            <div class="layui-input-inline">
                <select name='status' lay-search class="layui-select">
                    <option value=''>-- {:lang('全部')} --</option>
                    {foreach $plan_status_arr as $k => $v}{if $k eq input('get.status') && input('get.status') != ''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">{:lang('是否逾期')}</label>
            <div class="layui-input-inline">
                <select name='have_overdue' lay-search class="layui-select">
                    <option value=''>-- {:lang('全部')} --</option>
                    {foreach ['否', '是'] as $k => $v}{if $k eq input('get.have_overdue') && input('get.have_overdue') != ''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">{:lang('是否退款')}</label>
            <div class="layui-input-inline">
                <select name='refund_sts' lay-search class="layui-select">
                    <option value=''>-- {:lang('全部')} --</option>
                    {foreach ['未退款', '已退款'] as $k => $v}{if $k eq input('get.refund_sts') && input('get.refund_sts') != ''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>

            <div class="layui-form-item layui-inline">
                <label class="layui-form-label">应还款日期</label>
                <label class="layui-input-inline">
                    <input class="layui-input" data-date-range name="plan_date" placeholder="请选择应还款日期" value="{$plan_date}">
                </label>
                <script>
                    layui.use('laydate', function() {
                        var laydate = layui.laydate;

                        var planDate = "{$plan_date}";

                        //常规用法
                        laydate.render({
                            elem: '#plan_date',
                            type: 'range',
                            value: planDate
                        });
                    })
                </script>
            </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>
        </div>

    </form>

</fieldset>